//
//  BasicTabBarController.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/3/11.
//  
  

#import "BasicTabBarController.h"
#import "MustLocation.h"


@interface BasicTabBarController ()<UITabBarControllerDelegate>

@end

@implementation BasicTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.delegate = self;
}

#pragma mark - UITabBarControllerDelegate
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
#ifdef DEBUG
    return YES;
#endif
    return [MustLocation runableWithMustLocation:self.isMustLocation controller:tabBarController.selectedViewController];
}

@end
